package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * 资产卡片实物对象 erp_assets_physical_info
 *
 * @author cxl
 * @date 2024-09-03
 */
@TableName ("erp_assets_physical_info")
@ApiModel (value = "资产卡片实物", description = "资产卡片实物")
@Data
public class AssetsPhysicalEntity {

    /** 主键id */
    @TableId (type = IdType.INPUT)
    private String id;

    /** 资产卡片表id */
    @ApiModelProperty ("资产卡片表id")
    @TableField ("assets_id")
    @Excel (name = "资产卡片表id")
    private String assetsId;

    /** 资产编码 */
    @ApiModelProperty ("资产编码")
    @TableField ("assets_code")
    @Excel (name = "资产编码")
    private String assetsCode;

    /** 条形码 */
    @ApiModelProperty ("条形码")
    @TableField ("bar_code")
    @Excel (name = "条形码")
    private String barCode;

    /** 规格型号 */
    @ApiModelProperty ("规格型号")
    @TableField ("assets_model")
    @Excel (name = "规格型号")
    private String assetsModel;

    /** 资产位置 */
    @ApiModelProperty ("资产位置")
    @TableField ("assets_position")
    @Excel (name = "资产位置")
    private String assetsPosition;

    /** 数量 */
    @ApiModelProperty ("数量")
    @TableField ("assets_num")
    @Excel (name = "数量")
    private String assetsNum;

    /** 领用数量 */
    @ApiModelProperty ("领用数量")
    @TableField ("use_num")
    @Excel (name = "领用数量")
    private String useNum;

    /** 可领用数量 */
    @ApiModelProperty ("可领用数量")
    @TableField ("can_use_num")
    @Excel (name = "可领用数量")
    private String canUseNum;

    /** 产地 */
    @ApiModelProperty ("产地")
    @TableField ("producer")
    @Excel (name = "产地")
    private String producer;

    /** 供应商id  */
    @ApiModelProperty ("供应商id ")
    @TableField ("supplier_id")
    @Excel (name = "供应商id ")
    private String supplierId;

    /** 制造商 */
    @ApiModelProperty ("制造商")
    @TableField ("manufacturer")
    @Excel (name = "制造商")
    private String manufacturer;

    /** 是否保险 */
    @ApiModelProperty ("是否保险")
    @TableField ("is_insurance")
    @Excel (name = "是否保险")
    private Boolean isInsurance;

    /** 保管人 */
    @ApiModelProperty ("保管人")
    @TableField ("keeper")
    @Excel (name = "保管人")
    private String keeper;

    /** 实物类别 */
    @ApiModelProperty ("实物类别")
    @TableField ("physical_type")
    @Excel (name = "实物类别")
    private String physicalType;

    /** 是否可用 */
    @ApiModelProperty ("是否可用")
    @TableField ("is_used")
    @Excel (name = "是否可用")
    @TableLogic
    private Integer isUsed;

    /** 备注 */
    @ApiModelProperty ("备注")
    @TableField ("remark")
    @Excel (name = "备注")
    private String remark;

    /** 创建人 */
    @ApiModelProperty ("创建人")
    @TableField ("create_by")
    @Excel (name = "创建人")
    private String createBy;

    /** 创建时间 */
    @ApiModelProperty ("创建时间")
    @TableField ("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel (name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;

    /** 修改人 */
    @ApiModelProperty ("修改人")
    @TableField ("update_by")
    @Excel (name = "修改人")
    private String updateBy;

    /** 修改时间 */
    @ApiModelProperty ("修改时间")
    @TableField ("update_time")
    @JsonFormat (pattern = "yyyy-MM-dd")
    @Excel (name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateTime;


}
